<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<title>注销</title>
<style type="text/css">
  table, td {
    border-collapse: collapse;
    border: 0
  }
</style>
</head>
<body>
  <span>注销前，必须验证用户密码</span>
  <form action="cancel" method="post">
    <table>
      <tr>
        <td>用户名称</td>
        <td><input type="text" value="${sessionScope['user-name']}" disabled="disabled"></td>
      </tr>
      <tr>
        <td>密码</td>
        <td><input type="password" name="password" placeholder="最多10个字符"></td>
      </tr>
      <tr>
        <td><input type="submit" value="注销"></td>
      </tr>
    </table>
  </form>
  <c:if test="${error!=null}">
    <span class="error">${requestScope.error}</span>
  </c:if>
</body>
</html>
